using System;
using System.Collections.Generic;
using System.Text;
using DAOLayer;
using DTOLayer;

namespace BUSLayer
{
    public class TheDocGiaBUS: AbstractBus
    {
        public int TestExisted(TheDocGiaDTO dto)
        {
            TheDocGiaDAO dao = new TheDocGiaDAO();
            return dao.TestExisted(dto);
        }
        public int InsertTheDocGia(TheDocGiaDTO dto)
        {
            TheDocGiaDAO dao = new TheDocGiaDAO();
            return dao.InsertTheDocGia(dto);
        }
        public int DeleteTheDocGia(int dto)
        {
            TheDocGiaDAO dao = new TheDocGiaDAO();
            return dao.Delete(dto);
        }
        public int UpdateTheDocGia(TheDocGiaDTO dto)
        {
            TheDocGiaDAO dao = new TheDocGiaDAO();
            return dao.UpdateThedocGia(dto);
        }

    }
}
